<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title>提交订单</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/main.css" />
		<style type="text/css">
			.mui-content {
				background: #FFFFFF;
			}

			.datails_address {
				margin-top: 0.625rem;
				border-bottom: 1px solid #F2F2F2;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">提交订单</h1>
		</header>
		<div class="mui-content">
			<div class="mui-row datails_address">
				<div class="mui-col-xs-1">
					<img src="images/nav_%20(4).png" alt="" style="width: 1.5625rem;height: 1.5625rem;">
				</div>
				<div class="mui-col-xs-11">
					<p style="margin: 0;color: #333333;">兄弟船日本料理（小寨店）</p>
					<p>西安市雁塔区长安中路86号开米广场南侧兄弟船日本料理小寨店（地铁小寨站A出口一百米）</p>
				</div>
			</div>
			<div class="row order_goodsinfo">
				<div class="mui-col-xs-12">
					<div class="mui-row">
						<div class="mui-col-xs-12">
							<h5>商品信息</h5>
						</div>
						<div class="mui-col-xs-2"><img src="images/user.jpg"></div>
						<div class="mui-col-xs-10 order_goodsinfo_desc">
							<p>可堂食，可自提，三环内免费配送 高颜值高品质寿司来袭！99元享原价385元兄弟船日本料理小寨店寿司套餐~军舰类、手握类</p>
						</div>
						<div class="mui-col-xs-12 order_goodsinfo_sku">
							超值寿司套餐 <span class="mui-pull-right datails_goodsinfo_price">￥99.25</span>
						</div>
						<div class="mui-col-xs-12 order_goodsinfo_sku">
							购买数量
							<div class="order_goodsinfo_sku_number">
								<img src="images/ico_02.png" style="width: 1.5625rem; height: 1.5625rem" onclick="numberreduce()">
								<input class="mui-numbox-input" type="number" id="number" min="1" value="1" />
								<img src="images/ico_03.png" style="width: 1.5625rem; height: 1.5625rem" onclick="numberadd()">
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="mui-row order_footer">
				<div class="mui-col-xs-9">小计 <span class="datails_goodsinfo_price" id="datails_goodsinfo_price"></span></div>
				<div class="mui-col-xs-3"><span onclick="routerto()">立即支付</span></div>
			</div>
		</div>
		<script src="js/mui.js"></script>
		<script type="text/javascript">
			mui.init()
			mui('body').on('tap','a',function(){
			          window.top.location.href=this.href;
			   });
			let price  = 99.25
			let number = document.getElementById('number')
			document.getElementById('datails_goodsinfo_price').innerHTML =`￥ ${price}`
			function numberadd() {
				number.value++
				document.getElementById('datails_goodsinfo_price').innerHTML = `￥${number.value * price.toFixed(2)}`
			}
			function numberreduce() {
				number.value--
				if(number.value<1){
					number.value = 1
				}
				document.getElementById('datails_goodsinfo_price').innerHTML = `￥${number.value * price.toFixed(2)}`
			}
			function routerto(){
				window.location.href='purchasesuccess.html'
			}
		</script>
	</body>

</html>
